define([
    'jquery',
    'underscore',
    'backbone',
    'text!module/home/templates/test_admin.html'

], function($, _, Backbone, test_admin) {

    var AdminView = Backbone.View.extend({
        el: $("#page"),
        events: {
        },
        render: function() {            
            $.ajax({
                url: 'server/api/login/admin',
                type: 'POST',                             
                success: function(data) {
                    alert(data.msg.text);
                }
            });
            this.$el.html(test_admin);

        }
    });
    return AdminView;
});

